#ifndef RECORDLIST_H
#define RECORDLIST_H

#include "stdafx.h"
#include "Record.h"
#include "Diskpage.h"

#define PAGESIZE 7
class RecordList {

private:
	char * header_info;
	int header_count;
	Node header_nodes[100];
public:
	
	RecordList();
	RecordList(char *fileName);

	ArbRecord searchForRecord(int recordNumber);
	bool writeRecordsToDiskPage(int recordNumber);
	bool readInRecordAndStoreInArray(Record R, int pos);
	bool readInAsciiFile(char *fileName, int record);
	void setFileName(char *fileName);
	int getHeaderCount();
	Node getHeaderNode(int node);
	void interpretHeader();
	// open a file

private:
	Diskpage dp;
};

#endif